const candle = function () {
  return {
    type: 'candle_solid',
    bar: {
      upColor: '#00C278',
      downColor: '#FF4A60',
      noChangeColor: '#FF4A60',
      upBorderColor: '#00C278',
      downBorderColor: '#FF4A60',
      noChangeBorderColor: '#FF4A60',
      upWickColor: '#00C278',
      downWickColor: '#FF4A60',
      noChangeWickColor: '#FF4A60'
    },
    priceMark: {
      last: {
        text: {
          size: 10,
        },
      }
    },
    tooltip: {
      showRule: 'follow_cross',
      showType:'rect',
      // backgroundColor:'#212530',
      text:{
        size:10,
      },
      custom: [
        {
            title: 'time',
            value: '{time}'
        },
        {
            title: 'open',
            value: '{open}'
        },
        {
            title: 'high',
            value: '{high}'
        },
        {
            title: 'low',
            value: '{low}'
        },
        {
            title: 'close',
            value: '{close}'
        },
        {
            title: 'volume',
            value: '{volume}'
        },
        // {
        //   title:'turnover',
        //   value:'{turnover}'
        // },
        {
          title:'change',
            value:'{change}'
        }
      ],
    }
  }
}
export default candle;